

@RestController
@RequestMapping("/rmsBusinessSetupConfig")
public class RmsBusinessSetupConfigController {

    @Resource
    private RmsBusinessSetupConfigService rmsBusinessSetupConfigService;


    /**
     * 获取 RmsBusinessSetupConfig 分页列表
     */
    @GetMapping("/pagination")
    public Ret getRmsBusinessSetupConfigPagination( PaginationVo paginationVo, RmsBusinessSetupConfigQuery rmsBusinessSetupConfigQuery ) throws Exception {
        IPage page = rmsBusinessSetupConfigService.getRmsBusinessSetupConfigPagination(paginationVo, rmsBusinessSetupConfigQuery );
        return Ret.toPage(page);
    }


    /**
     * 获取 RmsBusinessSetupConfig 所有数据
     */
    @GetMapping("/all")
    public Ret getRmsBusinessSetupConfigAllList( RmsBusinessSetupConfigQuery rmsBusinessSetupConfigQuery ) throws Exception {
        List<RmsBusinessSetupConfigEntity> list = rmsBusinessSetupConfigService.getRmsBusinessSetupConfigAllList( rmsBusinessSetupConfigQuery );
        return Ret.ok(list);
    }



    /**
     * 获取 RmsBusinessSetupConfig 详情
    */
   @GetMapping("/{id}")
   public Ret getRmsBusinessSetupConfigDetail(@PathVariable Long id) throws Exception {

       RmsBusinessSetupConfigEntity rmsBusinessSetupConfig = rmsBusinessSetupConfigService.getRmsBusinessSetupConfigDetail(id);
       return Ret.ok(rmsBusinessSetupConfig);
   }


    /**
     * 新增 RmsBusinessSetupConfig
     * */
    @PostMapping("")
    public Ret addRmsBusinessSetupConfig(@RequestBody RmsBusinessSetupConfigVo rmsBusinessSetupConfigVo) throws Exception {

        rmsBusinessSetupConfigService.addRmsBusinessSetupConfig(rmsBusinessSetupConfigVo);
        return Ret.ok();
    }


    /**
     * 更新 RmsBusinessSetupConfig
     * */
    @PutMapping("")
    public Ret updateRmsBusinessSetupConfig(@RequestBody RmsBusinessSetupConfigVo rmsBusinessSetupConfigVo) throws Exception {

        rmsBusinessSetupConfigService.updateRmsBusinessSetupConfig(rmsBusinessSetupConfigVo);
        return Ret.ok();
    }


    /**
     * 删除 RmsBusinessSetupConfig
     * */
    @PostMapping("/batchRemove")
    public Ret batchRemoveRmsBusinessSetupConfig( @RequestBody List<Long> ids ) throws Exception {

        rmsBusinessSetupConfigService.batchRemoveRmsBusinessSetupConfig(ids);
        return Ret.ok();
    }
}

  